package com.nuoniu.sibanyun.entity.erp.in;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableField;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *  盘点业务-明细表
 * </p>
 *
 * @author 小啊刚
 * @since 2021-05-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("scw_count_detail")
@ApiModel(value="VInventoryCheckDetail对象", description="")
public class VInventoryCheckDetail extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主表id")
    @TableField("order_id")
    private Integer orderId;

    @ApiModelProperty(value = "租户ID")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "租户名称")
    @TableField("company_name")
    private String companyName;

    @ApiModelProperty(value = "账套ID")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "账套年份")
    @TableField("account_year")
    private Integer accountYear;

    @ApiModelProperty(value = "账套期间")
    @TableField("account_month")
    private Integer accountMonth;


    @ApiModelProperty(value = "仓库ID")
    @TableField("warehouse_id")
    private Integer warehouseId;

    @ApiModelProperty(value = "仓库名称")
    @TableField("warehouse_name")
    private String warehouseName;

    @ApiModelProperty(value = "仓库编码")
    @TableField("warehouse_code")
    private String warehouseCode;

    @ApiModelProperty(value = "物料id")
    @TableField("inventory_id")
    private Integer inventoryId;

    @ApiModelProperty(value = "物料名称")
    @TableField("inventory_name")
    private String inventoryName;

    @ApiModelProperty(value = "物料编码")
    @TableField("inventory_code")
    private String inventoryCode;

    @ApiModelProperty(value = "规格型号")
    @TableField("inventory_specification")
    private String inventorySpecification;

    @ApiModelProperty(value = "货位id")
    @TableField("inventory_location_id")
    private Integer inventoryLocationId;

    @ApiModelProperty(value = "货位名称")
    @TableField("inventory_location_name")
    private String inventoryLocationName;

    @ApiModelProperty(value = "货位编码")
    @TableField("inventory_location_code")
    private String inventoryLocationCode;

    @ApiModelProperty(value = "单计量ID")
    @TableField("unit_id")
    private Integer unitId;

    @ApiModelProperty(value = "计量单位组ID")
    @TableField("unit_group_id")
    private Integer unitGroupId;

    @ApiModelProperty(value = "主计量ID")
    @TableField("base_unit")
    private Integer baseUnit;

    @ApiModelProperty(value = "主计量名称")
    @TableField("base_unit_name")
    private String baseUnitName;

    @ApiModelProperty(value = "换算率")
    @TableField("unit_exchange_rate")
    private BigDecimal unitExchangeRate;

    @ApiModelProperty(value = "辅计量ID")
    @TableField("sub_unit")
    private Integer subUnit;

    @ApiModelProperty(value = "辅计量名称")
    @TableField("sub_unit_name")
    private String subUnitName;

    @ApiModelProperty(value = "辅计量数量")
    @TableField("sub_quantity")
    private BigDecimal subQuantity;

    @ApiModelProperty(value = "单价")
    @TableField("price")
    private BigDecimal price;

    @ApiModelProperty(value = "账面数量")
    @TableField("base_quantity")
    private BigDecimal baseQuantity;

    @ApiModelProperty(value = "账面金额")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty(value = "盘点数量")
    @TableField("check_quantity")
    private BigDecimal checkQuantity;

    @ApiModelProperty(value = "盘点金额")
    @TableField("check_amount")
    private BigDecimal checkAmount;

    @ApiModelProperty(value = "盈亏数量")
    @TableField("loss_or_gain_quantity")
    private BigDecimal lossOrGainQuantity;

    @ApiModelProperty(value = "盈亏金额")
    @TableField("loss_or_gain_amount")
    private BigDecimal lossOrGainAmount;

    @ApiModelProperty(value = "合理损耗率（%）")
    @TableField("reasonable_loss_rate")
    private BigDecimal reasonableLossRate;

    @ApiModelProperty(value = "盈亏比例（%）")
    @TableField("loss_or_gain_rate")
    private BigDecimal lossOrGainRate;

    @ApiModelProperty(value = "原因")
    @TableField("reason")
    private String reason;

    @ApiModelProperty(value = "备注")
    @TableField("remarks")
    private String remarks;


}
